package com.minxyz.mynative.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class LogAspect {

    @Around("execution(* com.minxyz.mynative.controller.RequestLogController.log(..))")
    public Object processInsertRoleConfig(ProceedingJoinPoint point) throws Throwable {

        log.info("enter LogAspect function");
        Object[] args = point.getArgs();
        return point.proceed(args);
    }

}
